<?php

use App\Library\Logic\ShopUserLogic;
use Illuminate\Database\Migrations\Migration;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up(): void
    {
        migrationUp(__FILE__);
        $secret = random();
        $password = random(16);
        ShopUserLogic::insertForModel([
            'userType' => 1,
            'userNickname' => random(),
            'userName' => '19999999999',
            'userMobile' => '19999999999',
            'userSecret' => $secret,
            'userPassword' => md5($password . $secret),
        ]);
    }
};
